import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class ThreadDemo1 {
    public static void main(String[] args) {
        //标准库提供的线程池，固定线程池个数10
        //工厂方法
        ExecutorService poll= Executors.newFixedThreadPool(10);
        poll.submit(new Runnable() {
            @Override
            public void run() {
                System.out.println("hello");
            }
        });
    }
}
